package com.qyhl.webtv.module_circle.circle.userlist.fragment;

import android.widget.ImageView;

import com.qyhl.webtv.commonlib.entity.circle.CircleHomeBean;

import java.util.List;

/**
 * Created by qyhl on 2018/2/8.
 */

public interface UserListContract {
    interface UserListView {
        void setDatas(List<CircleHomeBean.User> beanList);

        void setError(String msg);

        void setNetError(String msg);

        void followSuccess(String msg, ImageView follow, int position);

        void followError(String msg);

        void unFollowSuccess(String msg, ImageView follow, int position);

        void unFollowError(String msg);
    }

    interface UserListPresenter {
        void getFans();

        void getFollow();

        void setError(int code, String msg);

        void setDatas(List<CircleHomeBean.User> beanList);

        void doFollow(String dstUserName, ImageView follow, int position);

        void undoFollow(String dstUserName, ImageView follow, int position);

        void followSuccess(String msg, ImageView follow, int position);

        void followError(String msg);

        void unFollowSuccess(String msg, ImageView follow, int position);

        void unFollowError(String msg);
    }

    interface UserListModel {
        void getFans();

        void getFollow();

        void doFollow(String dstUserName, ImageView follow, int position);

        void undoFollow(String dstUserName, ImageView follow, int position);


    }
}
